package com.cx.mall.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cx.mall.common.model.order.OrderDTO;
import com.cx.mall.common.model.order.OrderInfo;
import com.cx.mall.common.model.order.OrderQuery;

import java.util.List;

public interface IOrderService {
    /**
     * 创建订单
     * @param order
     * @return
     */
    OrderInfo save(OrderDTO order) throws RuntimeException;

    Page page(OrderQuery query);

    void removeById(String id);

}
